package MP.lexicalanalysis;

public class ErrorReporter {
	public int numErrors;

	public ErrorReporter() {
       numErrors = 0;
    }
	public void reportError(String message, SourcePosition pos) {
       System.out.println(message+pos.toString());
       numErrors++;
    }
	public void reportError(String message) {
	   System.out.println(message);
	   numErrors++;
	}
}
